package com.sg.vo;

import java.sql.Timestamp;

/**
 * @author fyp
 * 订单商品关系类
 */
public class ComandOrderVO {
    /**
     * 关系编号
     */
    private int coId;

    /**
     * 购买数量
     */
    private int coNumber;

    /**
     * 总价
     */
    private int coPrinces;

    /**
     * 订单编号
     */
    private int orderId;

    /**
     * 订单总金额
     */
    private int prices;

    /**
     * 订单时间
     */
    private Timestamp orderTime;

    /**
     * 商品编号
     */
    private int comId;
    /**
     *商品名称
     */
    private String comName;

    /**
     *商品价格
     */
    private int comPrice;

    /**
     *商品照片
     */
    private String comImg;

    public ComandOrderVO() {
    }

    @Override
    public String toString() {
        return "ComandOrderVO{" +
                "coId=" + coId +
                ", coNumber=" + coNumber +
                ", coPrinces=" + coPrinces +
                ", orderId=" + orderId +
                ", prices=" + prices +
                ", orderTime=" + orderTime +
                ", comId=" + comId +
                ", comName='" + comName + '\'' +
                ", comPrice=" + comPrice +
                ", comImg='" + comImg + '\'' +
                '}';
    }

    public ComandOrderVO(int coId, int coNumber, int coPrinces, int orderId, int prices, Timestamp orderTime, int comId, String comName, int comPrice, String comImg) {
        this.coId = coId;
        this.coNumber = coNumber;
        this.coPrinces = coPrinces;
        this.orderId = orderId;
        this.prices = prices;
        this.orderTime = orderTime;
        this.comId = comId;
        this.comName = comName;
        this.comPrice = comPrice;
        this.comImg = comImg;
    }

    public int getCoId() {
        return coId;
    }

    public void setCoId(int coId) {
        this.coId = coId;
    }

    public int getCoNumber() {
        return coNumber;
    }

    public void setCoNumber(int coNumber) {
        this.coNumber = coNumber;
    }

    public int getCoPrinces() {
        return coPrinces;
    }

    public void setCoPrinces(int coPrinces) {
        this.coPrinces = coPrinces;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getPrices() {
        return prices;
    }

    public void setPrices(int prices) {
        this.prices = prices;
    }

    public Timestamp getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Timestamp orderTime) {
        this.orderTime = orderTime;
    }

    public int getComId() {
        return comId;
    }

    public void setComId(int comId) {
        this.comId = comId;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public int getComPrice() {
        return comPrice;
    }

    public void setComPrice(int comPrice) {
        this.comPrice = comPrice;
    }

    public String getComImg() {
        return comImg;
    }

    public void setComImg(String comImg) {
        this.comImg = comImg;
    }
}
